package top.jidanmian.iot.device.interaction;

import lombok.Data;
import top.jidanmian.iot.device.entity.DeviceEntity;

@Data
public class DeviceVO {
    private Long id;
    private String name;
    private String type;
    private String location;
    private String status;

    public DeviceVO()
    {
    }

    public DeviceVO(Long id, String name)
    {
        this.id = id;
        this.name = name;
    }

    public DeviceVO(DeviceEntity entity) {
        this.id = entity.getId();
        this.name = entity.getName();
        this.type = entity.getType();
        this.location = entity.getLocation();
        this.status = entity.getStatus();
    }
}
